<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>商品类型管理</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link rel='stylesheet' type='text/css' href="__PUBLIC__/Css/Admin/common.css"/>
    </head>
<body>
	<h2 class="top">
		<span>类型属性列表</span>
		<a href="<?php echo U('addAttr', array('tid' => $_GET['id']));?>">添加类型属性</a>
	</h2>
	<table class="table1">
		<tr>
			<th>ID</th>
			<th>属性名称</th>
			<th>属性类型</th>
			<th>属性值</th>
			<th>操作</th>
		</tr>
		<?php if(is_array($attr)): foreach($attr as $key=>$v): ?><tr>
				<td width='8%' align='center'><?php echo ($v["id"]); ?></td>
				<td><?php echo ($v["name"]); ?></td>
				<td width='10%' align='center'>
					<?php if($v["type"]): ?>规格
					<?php else: ?>
						属性<?php endif; ?>
				</td>
				<td><?php echo ($v["value"]); ?></td>
				<td align='center'>
					<a href="" class='edit'>编辑</a>
					<a href="" class='del'>删除</a>
				</td>
			</tr><?php endforeach; endif; ?>
	</table>
</body>
</html>